import request from '@/utils/request'

// 查询饲料管理列表
export function listFeedmanagement(query) {
    return request({
        url: '/feedmanagement/feedmanagement/list',
        method: 'get',
        params: query
    })
}

// 查询饲料管理详细
export function getFeedmanagement(id) {
    return request({
        url: '/feedmanagement/feedmanagement/' + id,
        method: 'get'
    })
}

// 新增饲料管理
export function addFeedmanagement(data) {
    return request({
        url: '/feedmanagement/feedmanagement',
        method: 'post',
        data: data
    })
}

// 修改饲料管理
export function updateFeedmanagement(data) {
    return request({
        url: '/feedmanagement/feedmanagement',
        method: 'put',
        data: data
    })
}

// 删除饲料管理
export function delFeedmanagement(id) {
    return request({
        url: '/feedmanagement/feedmanagement/' + id,
        method: 'delete'
    })
}
